import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//导入axios
import axios from 'axios';
//导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//导入qs
import qs from 'qs'

//配置axios的基础路径
axios.defaults.baseURL = 'http://localhost:8080/';
const app = createApp(App);
//定义到全局对象
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$qs = qs;

app.use(ElementPlus)
app.use(router)
app.mount('#app')